import { Breadcrumb, Button, Checkbox, Form, Input, Layout, Menu, message, Result } from "ant-design-vue"
import type { App } from "vue"

const antdComponents = [
  Layout,
  Menu,
  Breadcrumb,
  Form,
  Result,
  Button,
  Input,
  Checkbox,
]

export function useAntd(app: App) {
    // 循环应用
    antdComponents.forEach(com => {
      app.use(com)
    })
    app.config.globalProperties.$message = message;
}